Fix FTBS on ia64 with -O1. Remove redundant LDFLAGS+=-g and CFLAGS+=-O2.
authorRob Browning <rlb@defaultvalue.org>
Fri, 20 Jul 2012 17:46:25 +0000 (12:46 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 20 Jul 2012 17:50:53 +0000 (12:50 -0500)
See also: #582439.

Closes: #679986
debian/rules

index 83563750707277998005f047d4fff30e19510807..0ecb4c320fa5ce96a9d8e5d2122afc9184dab3c9 100755 (executable)
@@ -105,10 +105,12 @@ CFLAGS += -Wall
 LDFLAGS = `dpkg-buildflags --get LDFLAGS`
 CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
 
-LDFLAGS   += -g
-
 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-  CFLAGS += -O2
+  ifneq (,$(filter $(DEB_HOST_ARCH),ia64))
+    # Fix a problem with newer versions of gcc on ia64.
+    # See bugs #582439 and #679986.
+    CFLAGS += -O1
+  endif # eq ia64
 endif
 
 joblimit := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))